Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reuse filewatcher #4475

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

reuse filewatcher #4475

wants to merge 3 commits into from

Conversation

zirain
Copy link
Contributor

@zirain zirain commented Oct 18, 2024

  1. reuse filewatcher package
  2. move code under util

@zirain zirain requested a review from a team as a code owner October 18, 2024 08:13
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 59.49367% with 32 lines in your changes missing coverage. Please review.

Project coverage is 66.16%. Comparing base (7188dad) to head (0d89ffa).

Files with missing lines Patch % Lines
internal/provider/file/file.go 0.00% 26 Missing ⚠️
internal/filewatcher/worker.go 85.71% 2 Missing and 1 partial ⚠️
internal/utils/path/path.go 86.95% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4475      +/-   ##
==========================================
+ Coverage   65.78%   66.16%   +0.37%     
==========================================
  Files         210      208       -2     
  Lines       31516    31329     -187     
==========================================
- Hits        20732    20728       -4     
+ Misses       9588     9403     -185     
- Partials     1196     1198       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zirain
Copy link
Contributor Author

zirain commented Oct 18, 2024

cc @shawnh2 PTAL

@arkodg arkodg requested review from shawnh2 and a team October 18, 2024 20:06
Copy link
Contributor

@shawnh2 shawnh2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done some test, seems running envoy-gateway server -c config.yaml with config.yaml:

apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyGateway
gateway:
  controllerName: gateway.envoyproxy.io/gatewayclass-controller
provider:
  type: Custom
  custom:
    resource:
      type: File
      file:
        paths: ["test/"]
logging:
  level:
    default: info

cannot catch any modifications (like vim, echo etc) under the paths.

@zirain zirain added the hold do not merge label Oct 19, 2024
@zirain zirain force-pushed the reuse-filewatcher branch 3 times, most recently from dba2ee1 to be0419e Compare October 19, 2024 16:35
@zirain zirain removed the hold do not merge label Oct 20, 2024
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants